package org.springblade.tms.module.sap.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @projectName: BladeX
 * @package: org.springblade.tms.module.sap.dto
 * @className: SAPQuotationSubmissionVO
 * @author: yr
 * @description: 报价上报SapVO
 * @date: 2022/6/30 15:59
 */
@Data
public class SAPQuotationSubmissionVO {
    @JSONField(name = "REQUEST_ID")
    private String REQUEST_ID;
    @JSONField(name = "USERID")
    private String USERID;
    @JSONField(name = "TYPE")
    private String TYPE;
    @JSONField(name = "REMARK")
    private String REMARK;
    @JSONField(name = "CREATETIME", format = "yyyy-MM-dd")
    private LocalDateTime CREATETIME;
    @JSONField(name = "CREATEID")
    private String CREATEID;
    @JSONField(name = "REQUESTNAME")
    private String REQUESTNAME;
    @JSONField(name = "ISNEXTFLOW")
    private String ISNEXTFLOW;
    @JSONField(name = "WORKFLOWID")
    private String WORKFLOWID;
    @JSONField(name = "ITEM")
    private List<Item> ITEM;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Item {
        @JSONField(name = "ITEM01")
        private List<ItemItem> ITEM;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        @Builder
        public static class ItemItem {
            @JSONField(name = "FIELDNAME")
            private String FIELDNAME;
            @JSONField(name = "FIELDVALUE")
            private String FIELDVALUE;
            @JSONField(name = "EDIT")
            private Boolean EDIT;
            @JSONField(name = "VIEW")
            private Boolean VIEW;
        }
    }
}
